﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Neat;
using Neat.GUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RattlerRace
{
    public class StartLevelScreen : Screen
    {

        Button mybutton;
        public StartLevelScreen(NeatGame Game)
            : base(Game)
        {
        }

        DateTime time;
        public override void Initialize()
        {
            base.Initialize();

            Label hello = Form.NewControl("hello", new Label()) as Label;
            hello.Caption = "Level" + Game1.GameStats.CurLevel;
            hello.Position = new Vector2(100, 100);
            hello.ForeColor = Color.White;
            time = DateTime.Now;
        }

        public override void Activate()
        {
            base.Activate();
        }

        public override void Update(GameTime gameTime, bool ForceInputEnable = true)
        {
            base.Update(gameTime, ForceInputEnable);

            if((DateTime.Now - time).TotalMilliseconds > 5000)
                base.game.Console.Run("e_show gamescreen");
        }

    }
}
